//
//  UILabel+Chain.h
//  ditelMaintain
//
//  Created by 葛悦彣 on 2023/3/2.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UILabel (Chain)

///添加文本
- (UILabel *(^)(NSString * text))addText;
///添加字体
- (UILabel *(^)(UIFont * font))addFont;
///添加颜色
- (UILabel *(^)(UIColor * color))addTextColor;
///添加行数
- (UILabel *(^)(NSInteger numberOfLines))addNumberOfLines;
///新建lab
+ (UILabel *(^)(void))newLab;

///抗被压缩
- (UILabel *(^)(void))mas_KYS;
///抗拉伸
- (UILabel *(^)(void))mas_KLS;


/// 添加背景颜色
- (UILabel * (^)(UIColor * color))addbackgroundColor;

@end

NS_ASSUME_NONNULL_END
